﻿@{
    ViewBag.Title = "开通网商";
    ViewBag.NavTitle = "开通网商";
    Layout = "~/Views/Shared/_UsersCenterLayout.cshtml";
}
@using MvcMall.Portal.Controllers.Users.ViewModels;
@model OpenStoreModel
<script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div class="right_box">
    <div class="right_box_map">
        开通网商
    </div>
    @using (Html.BeginForm("OpenStore", "Users", FormMethod.Post, new { enctype = "multipart/form-data" }))
    {
        <table style="margin-top: 10px;" width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr height="40">
                <td class="tab2_td">
                    @Html.LabelFor(c => c.StoreGradeId)：
                </td>
                <td>
                    @Html.DropDownListFor(c => c.StoreGradeId, ViewData["StoreGradeList"] as IEnumerable<SelectListItem>, new { @width = "200px" })
                </td>
                <td>
                    @Html.ValidationMessageFor(c => c.StoreGradeId)
                </td>
            </tr>
            <tr height="40">
                <td class="tab2_td">
                    @Html.LabelFor(c => c.StoreCategoryId)：
                </td>
                <td>
                    @Html.DropDownListFor(c => c.StoreCategoryId, ViewData["StoreCategoryList"] as IEnumerable<SelectListItem>, new { @width = "200px" })
                </td>
                <td>
                    @Html.ValidationMessageFor(c => c.StoreCategoryId)
                </td>
            </tr>
            <tr height="40">
                <td class="tab2_td">
                    @Html.LabelFor(c => c.StoreType)：
                </td>
                <td>
                    @Html.DropDownListFor(c => c.StoreType, ViewData["StoreTypeList"] as IEnumerable<SelectListItem>, new { @width = "200px" })
                </td>
                <td>
                    @Html.ValidationMessageFor(c => c.StoreType)
                </td>
            </tr>
            <tr height="40">
                <td class="tab2_td">
                    @Html.LabelFor(c => c.StoreName)：
                </td>
                <td>
                    @Html.TextBoxFor(c => c.StoreName, new { @class = "tab_input",@sytle="width:300px" })
                </td>
                <td>
                    @Html.ValidationMessageFor(c => c.StoreName)
                </td>
            </tr>
            <tr height="40">
                <td class="tab2_td">
                    @Html.LabelFor(c => c.OwnerName)：
                </td>
                <td>
                    @Html.TextBoxFor(c => c.OwnerName, new { @class = "tab_input", @sytle = "width:300px" })
                </td>
                <td>
                    @Html.ValidationMessageFor(c => c.OwnerName)
                </td>
            </tr>
            <tr height="40">
                <td class="tab2_td">
                    @Html.LabelFor(c => c.IdentityCardId)：
                </td>
                <td>
                    @Html.TextBoxFor(c => c.IdentityCardId, new { @class = "tab_input", @maxlength = "18", @sytle = "width:300px" })
                </td>
                <td>
                    @Html.ValidationMessageFor(c => c.IdentityCardId)
                </td>
            </tr>
            <tr height="40">
                <td class="tab2_td">
                    @Html.LabelFor(c => c.PromoteUserName)：
                </td>
                <td>
                    @Html.TextBoxFor(c => c.PromoteUserName, new { @class = "tab_input" })
                </td>
                <td>
                    @Html.ValidationMessageFor(c => c.PromoteUserName)
                </td>
            </tr>
            <tr height="40">
                <td class="tab2_td">
                    @Html.LabelFor(c => c.IdentityCardImage)：
                </td>
                <td>
                    <input type="file" id="IdentityCardImage" name="IdentityCardImage" />
                </td>
                <td>
                    @Html.ValidationMessageFor(c => c.IdentityCardImage)
                </td>
            </tr>
            <tr height="40">
                <td class="tab2_td">
                    @Html.LabelFor(c => c.LicenseImage)：
                </td>
                <td>
                    <input type="file" id="LicenseImage" name="LicenseImage" />
                </td>
                <td>
                    @Html.ValidationMessageFor(c => c.LicenseImage)
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td colspan="2">
                    <input type="submit" value="立即开通" />
                </td>
            </tr>
        </table>
    }
</div>
